package com.topboya.officeuser.config;

import com.topboya.officeuser.handler.SourceAccessInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @className SpringMvcConfig
 * @Author xiaxin
 * @Date 2020/12/25 19:13
 * @Version 1.0
 **/
@Configuration
public class SpringMvcConfig implements WebMvcConfigurer {

//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(new SourceAccessInterceptor()).addPathPatterns("/**")
//                //配置不拦截的路径
//                .excludePathPatterns("/","/login","/css/**","/js/**","/fonts/**","images/**");
//    }
}
